package com.wrupple.muba.catalogs.client.events.catalog;

import com.google.gwt.event.shared.GwtEvent;
import com.wrupple.muba.catalogs.domain.CatalogEntry;

public class EntryUpdatedEvent extends GwtEvent<EntryUpdatedEventHandler> {
	private static Type<EntryUpdatedEventHandler> type;
	public CatalogEntry entry;

	public EntryUpdatedEvent(CatalogEntry entry) {
		this.entry = entry;
	}

	@Override
	protected void dispatch(EntryUpdatedEventHandler handler) {
		handler.onEntryUpdated(this);
	}
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<EntryUpdatedEventHandler> getAssociatedType() {
		return getType();
	}

	public static com.google.gwt.event.shared.GwtEvent.Type<EntryUpdatedEventHandler> getType() {
		if(type==null){
			type=new Type<EntryUpdatedEventHandler>();
		}
		return type;
	}


}
